package edu.hcnu.common;

import java.util.Random;

/**
 * @ClassName CitySelector
 * @Description TODO
 * @Author liang
 * @Date 2023/4/30 13:29
 * @Version 1.0
 **/

public class CitySelector {
    private static final String[] CITIES = {"北京", "上海", "广州", "深圳", "杭州", "南京", "武汉", "重庆", "成都", "西安"};
    private static final Random RANDOM = new Random();

    public static String select() {
        int index = RANDOM.nextInt(CITIES.length);
        return CITIES[index];
    }
}
